package com.jiepu.daily.corejava.advanceed.part1.day0715;

/**
 * @Description:
 * @author: xinjie.txt
 * @date: 2020/7/15  14:46
 */
public class WrapperTest {
	public static void main(String[] args) {
		byte b1 = 100;
		byte b2 = 100;
		System.out.println(b1 == b2); // true
		Byte bobj1 = new Byte((byte) 100);
		Byte bobj2 = new Byte((byte) 100);
		System.out.println(bobj1 == bobj2); // false

		short s = 100;
		Short sobj = new Short((short) 100);

		int i = 100;
		Integer iobj = new Integer(100);

		Integer iobj2 = Integer.valueOf(100);

		int b = iobj.intValue();



		// 自动
		Integer integer1 = 95;
		int c = iobj;







	}

	public void test1() {
		int i = 10;
		test2(i);
	}

	public void test2(Integer integer) {

	}


}
